Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CoreProfile to database #5170

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Add CoreProfile to database #5170

merged 1 commit into from
Dec 10, 2024

Conversation

ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Dec 9, 2024

This PR fixes the issue of the workers being out of sync after the initial startup. It seems unclear if there was a reason why we didn't store the CoreProfile schema node in the database, my guess is that this was something that just happened when we removed the other profiles from the database.

As CoreProfile wasn't loaded to the database, we'd have a different instance on the first gunicorn worker compared to the three where CoreProfile gets generated automatically during initialization. There might be additional cleanups that could be done around this object but I'm guessing that would require changes to other tests and this is something we can look at later.

@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Dec 9, 2024
@ogenstad ogenstad force-pushed the pog-store-coreprofile-in-db branch from b168098 to 1dc8334 Compare December 9, 2024 15:53
@ogenstad ogenstad force-pushed the pog-store-coreprofile-in-db branch from 1dc8334 to 9418095 Compare December 9, 2024 15:58
Copy link

codspeed-hq bot commented Dec 9, 2024

CodSpeed Performance Report

Merging #5170 will not alter performance

Comparing pog-store-coreprofile-in-db (9418095) with stable (e25a602)

Summary

✅ 10 untouched benchmarks

@ogenstad ogenstad marked this pull request as ready for review December 9, 2024 20:59
@ogenstad ogenstad requested a review from a team December 9, 2024 20:59
Copy link
Collaborator

@dgarros dgarros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch
at some point would be good to add a test to ensure that the initial schema is always in Sync

@ogenstad
Copy link
Contributor Author

I opened #5178 as a follow up.

@ogenstad ogenstad merged commit e19331e into stable Dec 10, 2024
31 checks passed
@ogenstad ogenstad deleted the pog-store-coreprofile-in-db branch December 10, 2024 08:17
@dgarros dgarros mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants